package com.yunxiao.cloud.web.controller;

import com.yunxiao.cloud.common.base.BaseResultResponse;
import com.yunxiao.cloud.web.service.OosDemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * Created on 2020/2/28 15:59
 *
 * @author shy
 * @date 2020-02-28
 * @since 11
 */
@RestController
@RequestMapping("/oos")
public class OosDemoController {

    @Autowired
    private OosDemoService oosDemoService;

    @PostMapping("/upload")
    public BaseResultResponse upload(MultipartFile file){
       return oosDemoService.upload(file);
    }
}
